$OpenBSD: patch-mpccut_CMakeLists_txt,v 1.1 2013/06/23 14:30:52 dcoppa Exp $
--- mpccut/CMakeLists.txt.orig	Sat Aug 21 17:55:01 2010
+++ mpccut/CMakeLists.txt	Sun Jun 23 15:33:17 2013
@@ -13,12 +13,15 @@ endif(MSVC)
 add_executable(mpccut mpccut.c)
 
 if(SHARED)
-  target_link_libraries(mpccut mpcdec)
+  target_link_libraries(mpccut mpcdec_shared)
+  add_dependencies(mpccut mpcdec_shared)
 else(SHARED)
   target_link_libraries(mpccut mpcdec_static)
+  add_dependencies(mpccut mpcdec_static)
 endif(SHARED)
 
 target_link_libraries(mpccut mpcenc_static)
+add_dependencies(mpccut mpcenc_static)
 
 if(NOT MSVC)
 target_link_libraries(mpccut m)
